<include file="Public/head"/>
<link href="__PUBLIC__/qwadmin/css/shen/shen.css" rel="stylesheet" type="text/css" />

<body class="no-skin">
<style>
/*body .demo-class .layui-layer-title{background:#6495ED; color:#fff; border: none;}
body .demo-class .layui-layer-btn{border-top:1px solid #E9E7E7}
body .demo-class .layui-layer-btn a{background:#333;}
body .demo-class .layui-layer-btn .layui-layer-btn1{background:#999;}*/

/*body th{
    color:#4F94CD;
    font-size:15px;
}
body td{
    font-size:14px;
}*/
.ddd tr{border: none;}
.d11{display: flex;flex-direction: row;justify-content: center;align-items: flex-start;margin-top: 20px; margin-bottom: 20px;}
.ppu1{width: 10%;height: 80%;border: none;}
.ppu{border: none;width: 100%;height: 80%;text-align: center;}
.ddd td{height: 40px;border-bottom: 0px;border-right: 0px;}
.ddd th{height: 40px;border-bottom: 0px;border-right: 0px;}






#tet th{
    text-align: center;
}
#tet td{
    text-align: center;
}

#divv input{
    margin:0px 5px;
}
.dds input{
    margin:0px 5px;
}


.sp {
    border:1px solid #ccc;
    border-radius:50px;
    /*margin-top:30px;*/
}
.sp ul{
    margin-top:20px;
}
.sp ul li{
     float:left;
    margin:3px 10px;
    font-size:15px; 
    margin-left:28px;
}

.sp ul li button{
    width:140px;
    height:40px;
    border:1px solid #ccc;
    border-radius:50px;
}

#xxx ul{
    float:left;
    margin-top:5%;
}

#xxx ul li{
    float:left;
    padding: 5px 15px;
    margin-left:8px;
    font-size:15px;

}

</style>
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>
           
                <input type="button" value="市(内)派车" style="margin-top:10px;background-color:#fff;border:2px solid #1E90FF;color:#1E90FF;height:40px;width:150px;font-size:17px;box-shadow: 3px 3px 10px #1E90FF;" onclick="sn()">&nbsp&nbsp&nbsp&nbsp
                <input type="button" value="市(外)派车" style="margin-top:10px;background-color:#fff;border:2px solid #1E90FF;color:#1E90FF;height:40px;width:150px;font-size:17px;box-shadow: 3px 3px 10px #1E90FF;" onclick="sw()">
                <!-- 行政物资审核 -->
                   <div class="row">
                   
                        <div class="widget-box" style="margin-top:30px;height:0px;">

                            <div class="widget-header">

                                <h4 class="widget-title" style="color:#EE0000;">
                                    <label>                 
                                        <span class="lbl"></span>
                                    </label>
                                 <b>{$title}</b>
                                </h4>
                                <div class="widget-toolbar">
                                    <notempty name="v.children">
                                        <a href="#" data-action="collapse">
                                            <i class="ace-icon fa fa-chevron-up"></i>
                                        </a>
                                    </notempty>
                                </div>
                            </div>
                            <notempty name="v.children">
                                <div class="widget-body">
                                  
                                   
                                    <div class="widget-main row" style="height:100%;margin-top:2px;">
                                        <?php if(!empty($list)): ?>
                                                <!-- 行政物资审核 END -->
                                                <div>
                                                <!-- <h4 style="text-align:center;"><b>行政物资申请:</b></h4> -->
                                                <!-- <form id="form" method="post" action="{:U('Shenp/qtong')}"> -->
                                                <table class="table table-bordered" style="margin-top:5px;">
                                                    <thead>
                                                        <tr>
                                                            <!-- <th class="center"><input class="check-all" type="checkbox" value=""></th> -->
                                                            <th class="center">编号</th>
                                                            <th class="center">出发地</th>
                                                            <th class="center">目的地</th>
                                    
                                                            <th class="center">开始时间</th>
                                                            <!-- <th class="center">结束时间</th> -->

                                                            <th class="center">申请人</th>
                                                            <th class="center">所属部门</th>
                                                            <th class="center">申请缘由</th>
                                                            <th class="center">申请时间</th>
                                                            <th class="center">查看详细信息</th>
                                                            <th class="center">操作</th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                    <volist name="list" id="v">
                                                        <tr>
                                                          <!--   <td class="center">
                                                            <input class="uids" type="checkbox" name="uids[]" value="{$v['id']}">
                                                            </td> -->
                                                            <td class="center" id="ddi">{$v.id}</td>                                                   
                                                            <td class="center">
                                                              {$v.c_place}
                                                            </td>                                                   
                                                            <td class="center">{$v.d_place}</td>                                                   
                                                            <td class="center" style="color:#FFA500">{$v.k_time}</td>
                                                            <!-- <td class="center" style="color:#FF0000">{$v.e_time}</td> -->
                                                          
                                                            <td class="center">{$v.uname}</td>
                                                            <td class="center">{$v.ment}</td>
                                                            <td class="center">{$v.cont}</td>
                                                            <td class="center">{$v.time}</td>
                                                            <td class="center"><a href="{:U('xiang',array('id'=>$v['id']))}" class="tong" style="width:100px;border:1px solid #FFA500;box-shadow: 3px 3px 10px #FFA500;color:#FFA500" >查看详细信息</a></td>
                                                            
                                                           
                                                            <?php if($lei == '行政'): ?>
                                                                <td class="center" style="">
                                                                <div onclick="xtong({$v.id},{$v.type},this)" style="width:100px;border:1px solid #ccc;background-color:#25CB73;margin:0px auto;color:#fff;cursor:pointer;font-size:15px;" class="btn-success">添加用车回馈</div>
                                                                   
                                                                </td>
                                                            <?php else: ?>
                                                                <td class="center" style="">
                                                                <b style="color:#28FF28">√ 审批已通过</b>
                                                                </td>
                                                            <?php endif ?>
                                                           
                                                          
                                                            
                                                        </tr>
                                                    </volist>
                                                    </tbody>
                                                </table>
                                                 </form>
                                                <!-- 行政物资审核 END -->
                                                {$page}
                                        <?php endif ?>
                                                </div>
                                  
            

                                      
       
         
                    
                     


                


            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <!-- <include file="Public/footer"/> -->

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script src="__PUBLIC__/layer/layer.js"></script>
<script src="__PUBLIC__/jquery-1.7.2.min.js"></script>
<script>


function sn()
{
    location.href="{:U('Che/csuo')}";
}



function sw()
{
    location.href="{:U('Che/csuo',array('type'=>1))}";
}


function xtong(id,type,obj)
{
    $("#iii").val(id);
    $("#ttt").val(type);
    // $("#name").text(name);
    // console.log( $("#iii").val());
    layer.open({
    type: 1,
    title:  ['出车记录表', 'font-size:17px;'],
    skin: 'demo-class', //加上边框
    area: ['1100px', '500px'], //宽高
    content: $('#chu'),
    // btn:'按钮'
    });
}





</script>


</body>

</html>
                    <div id="chu" style="display:none;">

                        <div style="display: flex;flex-direction: column;justify-content: center;align-items: center;">
        
                            <div><h2 style="margin-bottom: 10px;margin-top: 10px;">出车记录</h2></div>
                          
                            <form action="{:U('Che/hadd')}" enctype="multipart/form-data" method="post">
                            <input type="hidden" name="cid" id="iii">
                            <input type="hidden" name="type" id="ttt">
                            <table border="1" width="1000px" >
                            
                                <thead>
                                    
                                </thead>
                                    
                                <tbody>
                                    <tr>
                                        
                                    </tr>
                                    
                                    <tr>
                                        <td style="text-align: center">用车人:</td>
                                        <td class="center" id="name"><input type="text" class="ppu" name="uname" style="border:none;"></td>
                                        <td style="text-align: center">用车事由:</td>
                                        <td colspan="5"><input type="text" class="ppu" name="content" style="border:none;" /></td>
                                        
                                    </tr>

                                    <tr>
                                        <td style="text-align: center">出发地点:</td>
                                        <td colspan="2"><input type="text" class="ppu" name="s_place" style="border:none;" /></td>
                                        <td style="text-align: center">目的地:</td>
                                        <td colspan="2"><input type="text" class="ppu" name="e_place" style="border:none;" /></td>
                                        
                                        
                                    </tr>

                                    <tr>
                                        <td style="text-align: center">起始读数:</td>
                                        <td ><input type="text" class="ppu" name="q" style="border:none;" /></td>
                                        <td style="text-align: center">结束读数:</td>
                                        <td><input type="text" class="ppu" name="e" style="border:none;" /></td>
                                        <td style="text-align: center">公里数:</td>
                                        <td><input type="text" class="ppu" name="km" style="border:none;" /></td>
                                        
                                    </tr>

                                    <tr>
                                        <td style="text-align: center">出发时间:</td>
                                        <td colspan="2"><input type="date" class="txt" name="s_date"  style="width:50%;height: 98%;border:none;" /><input type="time" class="txt" name="s_time" style="width:50%;height: 98%;border:none;"/></td>
                                        <td style="text-align: center">回到公司时间:</td>
                                        <td colspan="2"><input type="date" class="txt" name="e_date"  style="width:50%;height: 98%;border:none;" /><input type="time" class="txt" name="e_time" style="width:50%;height: 98%;border:none;"/></td>
                                    </tr>

                                    <tr>
                                        <td style="text-align: center">
                                            <select class="form-control center" name="fei">
                                              <option value="停车费">停车费</option>
                                              <option value="洗车费">洗车费</option>
                                              <option value="通行费">通行费</option>
                                              <option value="其他">其他</option>
                                            </select>
                                        </td>
                                        <td ><input type="text" class="ppu" name="rmb" style="border:none;" /></td>
                                        <td style="text-align: center">备注:</td>
                                        <td colspan="5"><input type="text" class="ppu" name="cont" style="border:none;" /></td>
                                        
                                    </tr>

                                    <tr>
                                        <td colspan="6" style="text-align: center;height:60px;"><button class="btn-success" style="width:150px;height:40px;font-size:16px;">提交</button></td>
                                        
                                    </tr>

                                </tbody>

                              

                            </table>
                        </form>
                        </div>
    
                    </div>